package main

import (
	"gitee.com/paopaoyu/helloworld/server/domain"
	"github.com/labstack/echo/v4"
)

func main() {

	cache := domain.NewCacheService()
	orderResource := domain.NewOrder(cache)

	e := echo.New()
	e.POST("/neworder", orderResource.Neworder)
	e.GET("/order", orderResource.Queryorders)
	e.DELETE("/order/:id", orderResource.DeleteOrder)

	e.Logger.Fatal(e.Start(":3000"))

}
